package hos.http.retrofit;

import java.lang.annotation.Annotation;
import java.lang.reflect.Type;

/**
 * <p>Title: RetrofitParameter </p>
 * <p>Description:  </p>
 * <p>Company: www.mapuni.com </p>
 *
 * @author : 蔡俊峰
 * @version : 1.0
 * @date : 2024-04-13 12:49
 */
public class RetrofitParamAnnotation {

    Annotation annotation;
    String key;
    int index;
    Type type;
    boolean encoded;

    RetrofitParamAnnotation(Annotation annotation, String key, int index, Type type, boolean encoded) {
        this.annotation = annotation;
        this.key = key;
        this.index = index;
        this.type = type;
        this.encoded = encoded;
    }

    public Annotation getAnnotation() {
        return annotation;
    }

    public String getKey() {
        return key;
    }

    public int getIndex() {
        return index;
    }

    public Type getType() {
        return type;
    }

    public boolean isEncoded() {
        return encoded;
    }
}
